package pcjavanet.mobilesell.persistence;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import pcjavanet.mobilesell.model.History;
import pcjavanet.mobilesell.model.HistoryExample;
import pcjavanet.mobilesell.model.PageBean;

public interface HistoryMapper {
    int countByExample(HistoryExample example);

    int deleteByExample(HistoryExample example);

    int deleteByPrimaryKey(Integer dbid);

    int insert(History record);

    int insertSelective(History record);

    List<History> selectByExample(HistoryExample example);

    History selectByPrimaryKey(Integer dbid);

    int updateByExampleSelective(@Param("record") History record, @Param("example") HistoryExample example);

    int updateByExample(@Param("record") History record, @Param("example") HistoryExample example);

    int updateByPrimaryKeySelective(History record);

    int updateByPrimaryKey(History record);

    List<History> getOnePageBeans(@Param("example") HistoryExample example, @Param("pageBean") PageBean pageBean);

    int getTotalRecords(@Param("example") HistoryExample example, @Param("pageBean") PageBean pageBean);

    List<History> selectByExamplePage(@Param("example") HistoryExample example, @Param("pageBean") PageBean pageBean);
}